package com.cn.dlwy.mapzone.view;

import com.cn.dlwy.mapzone.application.MyApplication;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.RadioButton;

public class TrueTypeView extends RadioButton {

	public TrueTypeView(Context context) {
		super(context);
	}

	public TrueTypeView(Context context, AttributeSet attrs) {
		super(context, attrs);
		setMyTTF(context);
	}

	public TrueTypeView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		setMyTTF(context);
	}

	// 设置ttf字体显示
	private void setMyTTF(Context context) {
		MyApplication mApplication = (MyApplication) context.getApplicationContext();
		setTypeface(mApplication.getmFace());
	}
}
